package com.luomo.spring;

import com.luomo.spring.bean.Person;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author LiuMei
 * @date 2021-07-13.
 */
public class MainTest {

	public static void main(String[] args) {
		ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("beans.xml");
		Person bean = context.getBean(Person.class);
		System.out.println(bean.getName());
	}

}
